﻿@model IEnumerable<YHWE.Web.Models.guestBook>

@{
    ViewBag.Title = "Index";
}

<h2>客户留言</h2>

<table>
    <tr>
        <th></th>
        <th>
            时间
        </th>
        <th>
            称呼
        </th>
        <th>
            ip
        </th>
        <th>
            是否显示
        </th>
    </tr>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("编辑&回复", "Edit", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
        <td>
            @String.Format("{0:g}", item.datetime)
        </td>
        <td title="@item.content">
            @item.name
        </td>
        <td>
            @item.ip
        </td>
        <td>
            @item.able
        </td>
    </tr>
}
</table>

